from sklearn.datasets import load_iris


data = load_iris()
X = data.data
y = data.target
print(X)
print(y)

X, y = load_iris(return_X_y=True)
print(X)
print(y)

data = load_iris()
print(type(data))  # <class 'sklearn.utils.Bunch'>
from sklearn.utils import Bunch
b = Bunch(a=1, b=2)
print(b['b'])
print(b.b)
b.a = 3
print(b['a'])
b.c = 6
print(b['c'])
